home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
LIBRARY
/
CMPLTPAS
/
STRIPWHT.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1988-09-29
|
880b
|
22 lines
{->>>>StripWhite<<<<-------------------------------------------}
{ }
{ Filename : STRIPWHT.SRC -- Last Modified 9/29/88 }
{ }
{ This removes the leading whitespace from the string passed }
{ in parameter Target. }
{ }
{ From: COMPLETE TURBO PASCAL 5.0 by Jeff Duntemann }
{ Scott, Foresman & Co., Inc. 1988 ISBN 0-673-38355-5 }
{--------------------------------------------------------------}
PROCEDURE StripWhite(VAR Target : String);
CONST
WhiteSpace : SET OF Char = [#7,#8,#10,#9,#12,#13,' '];
BEGIN
WHILE (Length(Target) > 0 ) AND (Target[1] IN Whitespace) DO
Delete(Target,1,1);
END;